<?php
class Resource extends MY_Controller {
	protected $_controller_path = '/resource/Resource';
	protected $_list_path = '/resource/list';
	protected $_model = 'resource/Resource_model';
	protected $_view_path = 'resource/view';
	protected $_create_path = 'resource/create';
	protected $_edit_path = 'resource/edit';

	protected function setFormValidation() {
		$this -> form_validation -> set_rules('name', 'Name', 'trim|required');
	}

	protected function init_input_data() {
		$resource_name = $this -> input -> post('name');
		$description = $this -> input -> post('description');
		$meta_data = unsign($resource_name);
		return array('name' => $resource_name,
					'description' => $description,
					'meta_data' => $meta_data
		);
	}
}
?>